#pragma once
#include "BurgerTimeMachine.h"

class CCookraceMachine:public CBurgerTimeMachine
{
protected:
	u8 VRAM[0x800];
public:
	CCookraceMachine();
	~CCookraceMachine();
	int Init();
	void Reset();
	void SaveState(CState *s);
	void LoadState(CState *s);
	void RenderScreen(u8 *dest,int pitch);
	void RenderBackground(u8 *dest,int pitch);
	static u8 OpMainCPU(void *user,u32 addr);
	static u8 ReadMainCPU(void *user,u32 addr);
	static void WriteMainCPU(void *user,u32 addr,u8 data);
	static u8 ReadSoundCPU(void *user,u32 addr);
	static void WriteSoundCPU(void *user,u32 addr,u8 data);
};
